package com.ssy.lingxi.settle.accounts.model.constant;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 平台优惠券 excel 枚举
 * @author Houpengfei
 * @date 2021/12/14
 * @version 2.0.0
 */
public enum PlatformCouponSettlementExcelEnum {
    ORDER_NO(1,"单据号"),
    ORDER_ABSTRACT(2,"单据摘要"),
    SETTLEMENT_ORDER_TYPE(3,"单据类型"),
    ORDER_TIME(4,"单据时间"),
    ORDER_TYPE(5,"订单类型"),
    ORDER_AMOUNT(6,"单据总额"),
    COUPON_AMOUNT(7,"优惠劵金额"),
    COUPON_NO(8,"优惠劵劵码"),
    PAY_TIME(9,"支付时间"),
    SETTLEMENT_AMOUNT(10,"本期结算金额"),
    FILE_NAME(11,"优惠劵结算明细"),
    ;
    private final Integer code;
    private final String message;

    PlatformCouponSettlementExcelEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getDeclaringClass(), this.getCode());
    }

}
